home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / utility / nodee1.zip / SOURCE.ZIP / NODCHILD.H < prev    next >
C/C++ Source or Header  |  1991-08-30  |  2KB  |  129 lines

  1.     #ifndef __NODCHILD_H
  2.  
  3.     #define __NODCHILD_H
  4.  
  5. /* get the other files which we need */
  6.  
  7.     #if !defined( __WINDOWS_H )
  8.     #include <Windows.h>
  9.     #endif
  10.  
  11.     #ifndef __CLASSWIN_H
  12.     #include "classwin.h"
  13.     #endif
  14.  
  15.     #ifndef __NOD1_H
  16.     #include "nod1.h"
  17.     #endif
  18.  
  19.     #ifndef __DIR_H
  20.     #include <dir.h>
  21.     #endif
  22.  
  23.     class DBox:public Child
  24.     {
  25.     public:
  26.         void create(HWND);
  27.         void set(void);
  28.         void unset(void);
  29.  
  30.  
  31.     };
  32.  
  33.     class GoButton:public Child
  34.     {
  35.     public:
  36.         void create( HWND );
  37.  
  38.     private:
  39.         char *text;
  40.  
  41.  
  42.     };
  43.  
  44.     class FirstLine:public Child
  45.     {
  46.     public:
  47.         void create(HWND);
  48.         void set(char*);
  49.  
  50.     private:
  51.         char *text;
  52.  
  53.     };
  54.  
  55.  
  56.     class FileList : public Child
  57.     {
  58.     public:
  59.         virtual void create(HWND);
  60.         BOOL validFile(void);
  61.         DWORD send(WORD,WORD,long);
  62.         virtual BOOL fileClick(void);
  63.         char* getFile(void);
  64.         void reset(void);
  65.         void mask(char *);
  66.  
  67.     private:
  68.         char szFileName[MAXPATH];
  69.         char szMask[MAXFULLFILE];
  70.         BOOL bValidFile;
  71.     };
  72.  
  73.     class DirList : public Child
  74.     {
  75.     public:
  76.         virtual void create(HWND);
  77.         virtual BOOL dirClick(void);
  78.         char getDir(void);
  79.         void reset(void);
  80.         DWORD send(WORD,WORD,long);
  81.  
  82.     private:
  83.         HWND hDirField;
  84.         char szDirName[MAXPATH];
  85.     };
  86.  
  87.  
  88. /*
  89. class FileFinder
  90.  
  91. functions:
  92.  
  93.     create(HWND parent) -
  94.  
  95.     reset()  - update display (used when APPACTIVATE occurs)
  96.  
  97.     dirClick - user clicked on directory box (overidden from base class)
  98.  
  99. inherited
  100.  
  101.     fileClick -
  102.     validFile -
  103.     getFile
  104.  
  105.     getDir -
  106.  
  107. conflicting inherited functions
  108.  
  109.     send- does nothing - covers underlying functions
  110.  
  111. BUGS:
  112. If the user does a dirClick and then attempts to check the ValidFile
  113. status, an incorrect result may return.  The FileName will still be
  114. set to the file in the previous directory.
  115.  
  116. */
  117.  
  118.     class FileFinder:public DirList , public FileList
  119.     {
  120.     public:
  121.         void create(HWND);
  122.         void reset(void);
  123.         BOOL dirClick(void);
  124.         void send(void);
  125.  
  126.     private:
  127.     };
  128.  
  129.     #endif